package com.work.xxzl.module.pagemine;

import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;

import com.work.xxzl.R;
import com.work.xxzl.base.BaseActivity;
import com.work.xxzl.utils.CountdownButton;
import com.work.xxzl.utils.ViewUtils;
import com.work.xxzl.view.EyeEditText;

import butterknife.BindView;

/**
 * author: Aly
 * date :2018/12/7 09:30
 * version:1.0
 * description:注册
 */
public class RegisterActivity extends BaseActivity {
    @BindView(R.id.et_phone)
    EditText etPhone;
    @BindView(R.id.et_phonecode)
    EditText etPhonecode;
    @BindView(R.id.cbt_time)
    CountdownButton cbtTime;
    @BindView(R.id.et_password)
    EyeEditText etPassword;
    @BindView(R.id.et_welcomephone)
    EditText etWelcomephone;
    @BindView(R.id.cb_agreement)
    CheckBox cbAgreement;
    @BindView(R.id.tv_agreement)
    TextView tvAgreement;
    @BindView(R.id.tv_register)
    TextView tvRegister;
    @BindView(R.id.tv_gologin)
    TextView tvGologin;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_pagemine_register;
    }

    @Override
    protected void initView() {
        mTitleBar.titleMiddle.setText("注册");
        ViewUtils.setOnClickListeners(this, cbtTime, tvAgreement, tvRegister, tvGologin);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void processClick(View v) {
        super.processClick(v);
        switch (v.getId()) {
            case R.id.cbt_time:
                cbtTime.start();
                break;
            case R.id.tv_agreement:
                //用户注册协议

                break;
            case R.id.tv_register:
                //立即注册

                break;
            case R.id.tv_gologin:
                //登录
                finish();
                break;

        }
    }
}
